//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package sw_dao

import "go.mongodb.org/mongo-driver/mongo"

var CateDao *_CateDao
var SoftwareDao *_SoftwareDao

func InitDao(mgoDb *mongo.Database) (err error) {
	CateDao, err = newCateDao(mgoDb)
	if err != nil {
		return
	}
	SoftwareDao, err = newSoftwareDao(mgoDb)
	if err != nil {
		return
	}
	return
}
